{% extends "base.html" %}
{% block content %}
<form class="well form-search" action="/demo/query/handle" method="post">
    <input type="text" name="name" id="name" placeholder="输入员工姓名或者泡泡号" class="input-medium search-query focused" />
    <input type="hidden" name="token" id="token" value={{ token }} />
    <button type="submit" class="btn btn-primary">查询</button>
    <span class="help-block">输入员工姓名或者泡泡号查询员工信息，默认查询所有员工信息返回,其他信息查询<a href="/demo/stats">点击此处</a> </span>
</form>
<span class="help-block"> {{ empty }} </span>
<table class="table table-hover table-striped" style="visibility:hidden; {{ setvisible }} ">
     <thead>
        <tr>
            <th>姓名</th>
            <th>性别</th>
            <th>POPO</th>
            <th>所属组</th>
            <th>组长</th>
        </tr>
    </thead>
    <tbody>
        {% for emp in emps %}
        <tr>
            <td>{{ emp.name }}</td>
            <td>{{ emp.gender }}</td>
            <td><a href="mailto:#">{{ emp.popo }}</a></td>
            <td>{{ emp.dept.dept_name }}</td>
            <td>{{ emp.dept.manager_name }}</td>
        </tr>
        {% endfor %}
    </tbody>
</table>
{% endblock %}

